
require('../css/commCss/basic.css')
require('../css/commCss/normalize.css')
require('../css/commCss/property.css')
require('../css/commCss/reset.css')
require('../libs/animate/animate.css')

require('../css/advert.less')




document.addEventListener('DOMContentLoaded', function () {

    //获取元素
    const countDown = document.querySelector('#countDown')
    // console.log(countDown);

    function setCountDown() {
        let time = 5
        setInterval(function () {
            --time;
            if (time <= 0) {
                location.href = './register.html'
            } else (
                countDown.textContent = time + 's'
            )
        }, 1000)
    }
    setCountDown()

})